aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/[lang=lang]/+page.svelte
blob: 0ab63eeb807553f47dc7612083beb1f7f9d716f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<script lang="ts">
	import Contact from "./sections/contact.svelte";
	import Hero from "./sections/hero.svelte";
	import Description from "./sections/description.svelte";
	import Products from "./sections/products.svelte";
	import LL from "$i18n/i18n-svelte";

	import type { PageData } from "./$types";

	export let data: PageData;
</script>

<main>
	<section id="hero">
		<div class="hero">
			<Hero model={data.hero} />
		</div>
		<div>
			<Description model={data.description} />
		</div>
	</section>
	<section>
		<h3 class="mb-3">{$LL.ourServices()}</h3>
		<Products model={data.products} />
	</section>
	<section>
		<Contact model={data.contact} />
	</section>
</main>

<style>
	main {
		margin: 0 5vw 2vh 5vw;
		display: flex;
		flex-direction: column;
	}
	main section {
		margin-bottom: 2vh;
	}

	#hero {
		display: grid;
		grid-template-columns: repeat(2, 50%);
		justify-content: space-between;
	}

	#hero .hero {
		padding: 3.2vw;
	}
</style>